<?php

namespace Theatre\View;

class JSON extends \Theatre\View {
	/**
	 * Render response
	 *
	 * @param $controller The actual controller
	 */
	public function render($controller) {
		$controller->disableCache();

		header('Content-type: application/json');

		echo json_encode($controller->viewVars);

		exit();
	}
}
